package com.whlilong.jxc.app;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.whlilong.jxc.constants.IAppConstants;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);

		layout.addStandaloneView(IAppConstants.systemManagerview_id, true,
				IPageLayout.LEFT, 0.20f, editorArea);
		layout.getViewLayout(IAppConstants.systemManagerview_id).setCloseable(
				false);
		layout.getViewLayout(IAppConstants.systemManagerview_id).setMoveable(
				false);

		layout.addView(IAppConstants.fileManagerView_id,
				IPageLayout.RIGHT, 0.80f, editorArea);
		layout.getViewLayout(IAppConstants.fileManagerView_id).setCloseable(false);
		layout.getViewLayout(IAppConstants.fileManagerView_id).setMoveable(false);
	}
}
